package ru.pb.game.network.engine.auth.packets.receivable;

import org.apache.log4j.Logger;

import ru.pb.game.controllers.AuthServerController;
import ru.pb.game.network.engine.auth.packets.AuthServerToGameServerPacket;

public class AUTH_RESPONSE extends AuthServerToGameServerPacket
{
	private static final Logger _log = Logger.getLogger(AUTH_RESPONSE.class);

	private int _serverId;

	@Override
	public void readImpl()
	{
		_serverId = readC();
	}

	@Override
	public void runImpl()
	{
		_log.info("Сервер успешно зарегистрирован. Сервер: " + _serverId);
		AuthServerController.getInstance().setClient(getClient());
		// AuthServerController.sendPacket(new REQUEST_INFO());
	}
}
